<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script>
        window.onload = function () { 

            let oDiv = document.createElement("div");
            let oP = document.createElement("p")
            let oText = document.createTextNode("Hello World!")
            oP.appendChild(oText)
            
            oDiv.appendChild(oP)

            document.body.appendChild(oDiv)

        }
    </script>
</body>
</html>